HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OP_GroupList Class Reference

#include <OP_GroupList.h>

Public Member Functions

 OP_GroupList (OP_Network *owner)
 
 ~OP_GroupList ()
 
void clearAndDestroy ()
 
OP_GroupcreateGroup (const char *name, fpreal x=.0F, fpreal y=.0F)
 
OP_GroupfindGroup (const char *name) const
 
int deleteGroup (const char *name)
 
int deleteGroup (OP_Group *group)
 
int getMembers (UT_ValArray< OP_Group * > &list, int internal=0) const
 
int getMemberships (const OP_Node *node, UT_ValArray< OP_Group * > &list, int internal=0) const
 
int saveCount () const
 
void saveToClipboard (std::ostream &os, int all=0, int list=0) const
 
bool loadFromClipboard (UT_IStream &is, const char *path) const
 
OP_ERROR save (std::ostream &os, int binary=0)
 
bool load (UT_IStream &is, int merge=0)
 
void clearUndoFlags ()
 
int64 getMemoryUsage (bool inclusive) const
 Return the amount of memory owned by this OP_GroupList. More...
 
using GroupPtr = OP_Group *
 
void entries (exint n)
 
exint entries () const
 
void setSize (exint n)
 
exint size () const
 
void setCapacity (exint n)
 
exint capacity (exint n)
 
GroupPtroperator() (exint i)
 
GroupPtr const & operator() (exint i) const
 
exint append ()
 
exint append (const GroupPtr &t)
 
exint append (GroupPtr &&t)
 

Detailed Description

Definition at line 27 of file OP_GroupList.h.

Member Typedef Documentation

Array-like methods

Definition at line 74 of file OP_GroupList.h.

Constructor & Destructor Documentation

OP_GroupList::OP_GroupList ( OP_Network owner)
OP_GroupList::~OP_GroupList ( )

Member Function Documentation

exint OP_GroupList::append ( )
inline

Array-like methods

Definition at line 83 of file OP_GroupList.h.

exint OP_GroupList::append ( const GroupPtr t)
inline

Array-like methods

Definition at line 84 of file OP_GroupList.h.

exint OP_GroupList::append ( GroupPtr &&  t)
inline

Array-like methods

Definition at line 85 of file OP_GroupList.h.

exint OP_GroupList::capacity ( exint  n)
inline

Array-like methods

Definition at line 80 of file OP_GroupList.h.

void OP_GroupList::clearAndDestroy ( )
void OP_GroupList::clearUndoFlags ( )
OP_Group* OP_GroupList::createGroup ( const char *  name,
fpreal  x = .0F,
fpreal  y = .0F 
)
int OP_GroupList::deleteGroup ( const char *  name)
int OP_GroupList::deleteGroup ( OP_Group group)
void OP_GroupList::entries ( exint  n)
inline

Array-like methods

Definition at line 75 of file OP_GroupList.h.

exint OP_GroupList::entries ( ) const
inline

Array-like methods

Definition at line 76 of file OP_GroupList.h.

OP_Group* OP_GroupList::findGroup ( const char *  name) const
int OP_GroupList::getMembers ( UT_ValArray< OP_Group * > &  list,
int  internal = 0 
) const
int OP_GroupList::getMemberships ( const OP_Node node,
UT_ValArray< OP_Group * > &  list,
int  internal = 0 
) const
int64 OP_GroupList::getMemoryUsage ( bool  inclusive) const

Return the amount of memory owned by this OP_GroupList.

bool OP_GroupList::load ( UT_IStream is,
int  merge = 0 
)
bool OP_GroupList::loadFromClipboard ( UT_IStream is,
const char *  path 
) const
GroupPtr& OP_GroupList::operator() ( exint  i)
inline

Array-like methods

Definition at line 81 of file OP_GroupList.h.

GroupPtr const& OP_GroupList::operator() ( exint  i) const
inline

Array-like methods

Definition at line 82 of file OP_GroupList.h.

OP_ERROR OP_GroupList::save ( std::ostream &  os,
int  binary = 0 
)
int OP_GroupList::saveCount ( ) const
void OP_GroupList::saveToClipboard ( std::ostream &  os,
int  all = 0,
int  list = 0 
) const
void OP_GroupList::setCapacity ( exint  n)
inline

Array-like methods

Definition at line 79 of file OP_GroupList.h.

void OP_GroupList::setSize ( exint  n)
inline

Array-like methods

Definition at line 77 of file OP_GroupList.h.

exint OP_GroupList::size ( void  ) const
inline

Array-like methods

Definition at line 78 of file OP_GroupList.h.


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