Puma::ACClassDatabase Class Reference
AspectC++ specific database of all aspect, slice, and pointcut info objects.
More...
#include <Puma/ACClassDatabase.h>
List of all members.
Detailed Description
AspectC++ specific database of all aspect, slice, and pointcut info objects.
Constructor & Destructor Documentation
Puma::ACClassDatabase::~ACClassDatabase |
( |
|
) |
[inline, virtual] |
Destruct the database.
Destroys all aspect and pointcut infos in the database.
Member Function Documentation
Get the aspect info according to the given class info.
- Parameters:
-
| ci | The class info of the aspect. |
- Returns:
- The aspect info or
NULL
if no matching aspect was found.
ACAspectInfo* Puma::ACClassDatabase::AspectInfo |
( |
const char * |
n |
) |
const |
Get the info of the aspect with the given name.
- Parameters:
-
| n | The name of the aspect. |
- Returns:
- The aspect info or
NULL
if there is no aspect with that name.
ACAspectInfo* Puma::ACClassDatabase::AspectInfo |
( |
int |
n |
) |
const [inline] |
Get the n-th aspect info.
- Parameters:
-
| n | The number of the aspect info. |
- Returns:
- The aspect info or
NULL
if n is invalid.
int Puma::ACClassDatabase::AspectInfos |
( |
|
) |
const [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.
- Parameters:
-
| out | The output stream to dump to. |
| level | The output level (not yet used). |
Create a new aspect info from the given class info.
The info is added to the database.
- Parameters:
-
Create a new pointcut info from the given function info.
The info is added to the database.
- Parameters:
-
Create a new slice info from the given object info.
The info is added to the database.
- Parameters:
-
Get the pointcut info according to the given function info.
- Parameters:
-
| fi | The function info of the pointcut. |
- Returns:
- The pointcut info or
NULL
if no matching pointcut was found.
ACPointcutInfo* Puma::ACClassDatabase::PointcutInfo |
( |
int |
n |
) |
const [inline] |
Get the n-th pointcut info.
- Parameters:
-
| n | The number of the pointcut info. |
- Returns:
- The pointcut info or
NULL
if n is invalid.
int Puma::ACClassDatabase::PointcutInfos |
( |
|
) |
const [inline] |
Get the number of pointcut infos in the database.
Get the slice info that is represented by the given object info.
- Parameters:
-
| oi | The object info of the slice. |
- Returns:
- The slice info or
NULL
if no matching slice was found.
ACSliceInfo* Puma::ACClassDatabase::SliceInfo |
( |
int |
n |
) |
const [inline] |
Get the n-th slice info.
- Parameters:
-
| n | The number of the slice info. |
- Returns:
- The slice info or
NULL
if n is invalid.
int Puma::ACClassDatabase::SliceInfos |
( |
|
) |
const [inline] |
Get the number of slice infos in the database.
Puma Reference Manual. Created on 24 Nov 2009.