#include <reflectionbase.h>
Package represents a package, that is a container of other packages, functions or classes which share the same prefix in their identifiers.
Public Member Functions | |
MAXON_METHOD Block< const Package *const > | GetPackages () const |
MAXON_METHOD const Package * | FindPackage (const Id &name) const |
Public Member Functions inherited from Container | |
MAXON_METHOD Block< const Class *const > | GetClasses () const |
MAXON_METHOD const Class * | FindClass (const Id &name) const |
MAXON_METHOD Block< const Function *const > | GetFunctions () const |
MAXON_METHOD Result< const Function * > | FindFunction (const Id &name) const |
MAXON_METHOD Result< void > | FindFunctions (const Id &name, const ValueReceiver< const Function * > &result) const |
Public Member Functions inherited from Member | |
enum maxon::reflection::Member::KIND | MAXON_ENUM_FLAGS_CLASS (KIND) |
MAXON_METHOD const Container * | GetEnclosingContainer () const |
MAXON_METHOD KIND | GetKind () const |
MAXON_METHOD const Id & | GetSimpleName () const |
MAXON_METHOD const Id & | GetId () const |
MAXON_METHOD String | ToString (const FormatStatement *fs=nullptr) const |
Static Public Member Functions | |
static MAXON_METHOD const Package * | GetGlobalPackage () |
Static Public Member Functions inherited from Container | |
static const Container * | Find (const Id &memberId) |
Static Public Member Functions inherited from Member | |
static MAXON_METHOD Result< Bool > | GetMembers (const ValueReceiver< const Member & > &members) |
static MAXON_METHOD const Member * | Find (const Id &memberId) |
Private Member Functions | |
MAXON_INTERFACE_NONVIRTUAL_DERIVED (Package, MAXON_REFERENCE_NONE, "net.maxon.reflection.interface.package", MAXON_IMPLEMENTATION_MODULE("net.maxon.kernel")) | |
Additional Inherited Members | |
Public Types inherited from Member | |
enum class | KIND { PACKAGE , CLASS , FUNCTION , INSTANCE_FUNCTION , CONST_INSTANCE_FUNCTION , CONTAINER_TEST , FUNCTION_TEST } |
|
private |
MAXON_METHOD Block<const Package* const> GetPackages | ( | ) | const |
Returns a list of all packages which are directly contained within this package.
MAXON_METHOD const Package* FindPackage | ( | const Id & | name | ) | const |
Finds the package which is directly contained within this package and has the given (unqualified) name
.
[in] | name | Name of the package to find. |
name
.
|
static |
Returns the global package. All other members are directly or indirectly contained within the global package.