Laxkit  0.0.7.1
Public Member Functions | Public Attributes | Protected Attributes
Laxkit::TagCloud Class Reference

A tagged object manager, to make searching for sets of objects with specified tags easier. More...

Inheritance diagram for Laxkit::TagCloud:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual int RemoveTag (const char *tag)
virtual int RemoveTag (int i)
 Remove tag index i.
virtual void FlushTags ()
virtual int AddObject (Tagged *obj)
virtual int RemoveObject (Tagged *obj)
 Remove object from being referenced by taginfo.
- Public Member Functions inherited from Laxkit::Tagged
virtual int HasTag (const char *tag, int casematters)
 Return whether the tag exists.
virtual int NumberOfTags ()
 Return the number of tags, strangely enough.
virtual const charGetTag (int i)
 Return const pointer to the tag text for tag number i, where i==0 is the first tag.
virtual charGetAllTags ()
 Return a new char[] with a space separated list of all the tags.
virtual int InsertTags (const char *tags, int casematters)
 Insert tags from a string such as 'tag1 tag2 tag3 "tag with spaces" tag4'.
virtual int InsertTag (const char *tag, int casematters)
 Insert tag if it doesn't exist already.

Public Attributes

int keep_empty_tags
- Public Attributes inherited from Laxkit::Tagged
int sorttags

Protected Attributes

PtrStack< TagCloudInfotaginfo
- Protected Attributes inherited from Laxkit::Tagged
PtrStack< charlist_of_tags

Detailed Description

A tagged object manager, to make searching for sets of objects with specified tags easier.


Member Function Documentation

int Laxkit::TagCloud::AddObject ( Tagged obj)
virtual
int Laxkit::TagCloud::RemoveObject ( Tagged obj)
virtual

Remove object from being referenced by taginfo.

Return 1 for object removed, no change in tag list. Return 2 for object removed, and some tags are gone now. Return a negative number for some error.

References Laxkit::PtrStack< T >::e, Laxkit::PtrStack< T >::findindex(), Laxkit::Tagged::HasTag(), Laxkit::PtrStack< T >::n, and Laxkit::PtrStack< T >::remove().


The documentation for this class was generated from the following files:

Mon Feb 17 2014 11:53:00, Laxkit