logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ost::Assoc - This class is used to associate (object) pointers with named strings.

Author

       Generated automatically by Doxygen for GNU CommonC++ from the source code.

GNU CommonC++                                    Sun Dec 27 2020                                   ost::Assoc(3)

Constructor & Destructor Documentation

ost::Assoc::Assoc()[protected]virtualost::Assoc::~Assoc()[protected],[virtual]

Detailed Description

       This class is used to associate (object) pointers with named strings.

       A virtual is used to allocate memory which can be overriden in the derived class.

       Author
           David Sugar dyfet@ostel.com

       associate names with pointers.

Member Function Documentation

voidost::Assoc::clear(void)[protected]virtualvoid*ost::Assoc::getMemory(size_tsize)[protected],[purevirtual]void*ost::Assoc::getPointer(constchar*id)constvoidost::Assoc::setPointer(constchar*id,void*data)

Name

       ost::Assoc - This class is used to associate (object) pointers with named strings.

Synopsis

       #include <misc.h>

   PublicMemberFunctions
       void * getPointer (const char *id) const
       void setPointer (const char *id, void *data)

   ProtectedMemberFunctionsAssoc ()
       virtual ~Assoc ()
       void clear (void)
       virtual void * getMemory (size_t size)=0

See Also