Package Class Reference

#include <reflectionbase.h>

Inheritance diagram for Package:

详细描述

Package represents a package, that is a container of other packages, functions or classes which share the same prefix in their identifiers.

公共成员函数

MAXON_METHOD Block < const Package *const >  GetPackages () const
const MAXON_METHOD Package FindPackage (const Id &name) const
-  Public Member Functions inherited from Container
MAXON_METHOD Block < const Class *const >  GetClasses () const
const MAXON_METHOD Class FindClass (const Id &name) const
MAXON_METHOD Block < const 函数 *const >  GetFunctions () const
MAXON_METHOD Result < const 函数 * >  FindFunction (const Id &name) const
MAXON_METHOD Result < void >  FindFunctions (const Id &name, const ValueReceiver < const 函数 * > &result) const
-  Public Member Functions inherited from Member
enum maxon::reflection::Member::KIND   MAXON_ENUM_FLAGS_CLASS ( KIND )
const MAXON_METHOD Container GetEnclosingContainer () const
MAXON_METHOD KIND   GetKind () const
const MAXON_METHOD Id GetSimpleName () const
const MAXON_METHOD Id GetId () const
MAXON_METHOD String   ToString (const FormatStatement *fs=nullptr) const

静态公共成员函数

static const MAXON_METHOD 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 const MAXON_METHOD Member Find (const Id &memberId)

私有成员函数

  MAXON_INTERFACE_NONVIRTUAL_DERIVED ( Package , MAXON_REFERENCE_NONE , "net.maxon.reflection.interface.package")

Additional Inherited Members

-  Public Types inherited from Member
enum   KIND {
   PACKAGE ,
   CLASS ,
   FUNCTION ,
   INSTANCE_FUNCTION ,
   CONST_INSTANCE_FUNCTION ,
   CONTAINER_TEST ,
   FUNCTION_TEST
}

成员函数文档编制

◆  MAXON_INTERFACE_NONVIRTUAL_DERIVED()

MAXON_INTERFACE_NONVIRTUAL_DERIVED ( Package   ,
MAXON_REFERENCE_NONE   ,
"net.maxon.reflection.interface.package"   
)
private

◆  GetPackages()

MAXON_METHOD Block <const Package * const> GetPackages ( ) const

Returns a list of all packages which are directly contained within this package.

返回
All packages which are directly contained within this package.

◆  FindPackage()

const MAXON_METHOD 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.
返回
The found package, or nullptr if there is no package with the given name .

◆  GetGlobalPackage()

static const MAXON_METHOD Package * GetGlobalPackage ( )
static

Returns the global package. All other members are directly or indirectly contained within the global package.

返回
Representation of the global package.