| Puma Reference Manual | Puma::ACClassDatabase Class Reference |
AspectC++ specific database of all aspect, slice, and pointcut info objects. More...
#include <Puma/ACClassDatabase.h>
Public Member Functions | |
| virtual | ~ACClassDatabase () |
| Destruct the database. More... | |
| int | AspectInfos () const |
| Get the number of aspect infos in the database. More... | |
| ACAspectInfo * | AspectInfo (int n) const |
| Get the n-th aspect info. More... | |
| ACAspectInfo * | AspectInfo (const char *n) const |
| Get the info of the aspect with the given name. More... | |
| ACAspectInfo * | AspectInfo (CClassInfo *ci) const |
| Get the aspect info according to the given class info. More... | |
| int | PointcutInfos () const |
| Get the number of pointcut infos in the database. More... | |
| ACPointcutInfo * | PointcutInfo (int n) const |
| Get the n-th pointcut info. More... | |
| ACPointcutInfo * | PointcutInfo (CFunctionInfo *fi) const |
| Get the pointcut info according to the given function info. More... | |
| int | SliceInfos () const |
| Get the number of slice infos in the database. More... | |
| ACSliceInfo * | SliceInfo (int n) const |
| Get the n-th slice info. More... | |
| ACSliceInfo * | SliceInfo (CObjectInfo *oi) const |
| Get the slice info that is represented by the given object info. More... | |
| ACAspectInfo * | new_aspect (CClassInfo *ci) |
| Create a new aspect info from the given class info. More... | |
| ACPointcutInfo * | new_pointcut (CFunctionInfo *fi) |
| Create a new pointcut info from the given function info. More... | |
| ACSliceInfo * | new_slice (CObjectInfo *oi) |
| Create a new slice info from the given object info. More... | |
| void | Dump (ostream &out, int level=0) const |
| Dump the contents of the database. More... | |
AspectC++ specific database of all aspect, slice, and pointcut info objects.
|
inlinevirtual |
Destruct the database.
Destroys all aspect and pointcut infos in the database.
|
inline |
Get the n-th aspect info.
| n | The number of the aspect info. |
NULL if n is invalid. | ACAspectInfo* Puma::ACClassDatabase::AspectInfo | ( | const char * | n | ) | const |
Get the info of the aspect with the given name.
| n | The name of the aspect. |
NULL if there is no aspect with that name. | ACAspectInfo* Puma::ACClassDatabase::AspectInfo | ( | CClassInfo * | ci | ) | const |
Get the aspect info according to the given class info.
| ci | The class info of the aspect. |
NULL if no matching aspect was found.
|
inline |
Get the number of aspect infos in the database.
| void Puma::ACClassDatabase::Dump | ( | ostream & | out, |
| int | level = 0 |
||
| ) | const |
Dump the contents of the database.
| out | The output stream to dump to. |
| level | The output level (not yet used). |
| ACAspectInfo* Puma::ACClassDatabase::new_aspect | ( | CClassInfo * | ci | ) |
Create a new aspect info from the given class info.
The info is added to the database.
| ci | The class info. |
| ACPointcutInfo* Puma::ACClassDatabase::new_pointcut | ( | CFunctionInfo * | fi | ) |
Create a new pointcut info from the given function info.
The info is added to the database.
| fi | The function info. |
| ACSliceInfo* Puma::ACClassDatabase::new_slice | ( | CObjectInfo * | oi | ) |
Create a new slice info from the given object info.
The info is added to the database.
| oi | The object info. |
|
inline |
Get the n-th pointcut info.
| n | The number of the pointcut info. |
NULL if n is invalid. | ACPointcutInfo* Puma::ACClassDatabase::PointcutInfo | ( | CFunctionInfo * | fi | ) | const |
Get the pointcut info according to the given function info.
| fi | The function info of the pointcut. |
NULL if no matching pointcut was found.
|
inline |
Get the number of pointcut infos in the database.
|
inline |
Get the n-th slice info.
| n | The number of the slice info. |
NULL if n is invalid. | ACSliceInfo* Puma::ACClassDatabase::SliceInfo | ( | CObjectInfo * | oi | ) | const |
Get the slice info that is represented by the given object info.
| oi | The object info of the slice. |
NULL if no matching slice was found.
|
inline |
Get the number of slice infos in the database.