LibreOffice Module codemaker (master) 1
|
A simple class to track which other entities a given entity depends on. More...
#include <dependencies.hxx>
Public Types | |
enum | Kind { KIND_NORMAL , KIND_BASE , KIND_EXCEPTION } |
Flags to distinguish whether one entity depends on another entity because the second is a direct base of the first or an exception thrown by the first. More... | |
typedef std::map< OUString, Kind > | Map |
Public Member Functions | |
Dependencies (rtl::Reference< TypeManager > const &manager, OUString const &name) | |
Constructs the dependencies for a given entity. More... | |
~Dependencies () | |
Dependencies (const Dependencies &)=delete | |
const Dependencies & | operator= (const Dependencies &)=delete |
Map const & | getMap () const |
bool | hasBooleanDependency () const |
bool | hasByteDependency () const |
bool | hasShortDependency () const |
bool | hasUnsignedShortDependency () const |
bool | hasLongDependency () const |
bool | hasUnsignedLongDependency () const |
bool | hasHyperDependency () const |
bool | hasUnsignedHyperDependency () const |
bool | hasCharDependency () const |
bool | hasStringDependency () const |
bool | hasTypeDependency () const |
bool | hasAnyDependency () const |
bool | hasSequenceDependency () const |
Private Member Functions | |
void | insert (std::u16string_view name, Kind kind) |
Private Attributes | |
rtl::Reference< TypeManager > | m_manager |
Map | m_map |
bool | m_voidDependency |
bool | m_booleanDependency |
bool | m_byteDependency |
bool | m_shortDependency |
bool | m_unsignedShortDependency |
bool | m_longDependency |
bool | m_unsignedLongDependency |
bool | m_hyperDependency |
bool | m_unsignedHyperDependency |
bool | m_charDependency |
bool | m_stringDependency |
bool | m_typeDependency |
bool | m_anyDependency |
bool | m_sequenceDependency |
A simple class to track which other entities a given entity depends on.
This class is not multi-thread–safe.
Definition at line 41 of file dependencies.hxx.
typedef std::map< OUString, Kind > codemaker::cppumaker::Dependencies::Map |
Definition at line 50 of file dependencies.hxx.
Flags to distinguish whether one entity depends on another entity because the second is a direct base of the first or an exception thrown by the first.
Enumerator | |
---|---|
KIND_NORMAL | |
KIND_BASE | |
KIND_EXCEPTION |
Definition at line 48 of file dependencies.hxx.
codemaker::cppumaker::Dependencies::Dependencies | ( | rtl::Reference< TypeManager > const & | manager, |
OUString const & | name | ||
) |
Constructs the dependencies for a given entity.
manager | a type manager, to obtain information about the given entity; must not be null |
name | the UNOIDL name of an enum type, plain struct type, polymorphic struct type template, exception type, interface type, typedef, constant group, single-interface–based service, or interface-based singleton entity |
Definition at line 40 of file dependencies.cxx.
References codemaker::UnoType::ConstantGroup, codemaker::UnoType::Enum, ex, codemaker::UnoType::Exception, unoidl::TypedefEntity::getType(), insert(), codemaker::UnoType::Interface, codemaker::UnoType::InterfaceBasedSingleton, KIND_BASE, KIND_EXCEPTION, KIND_NORMAL, m_booleanDependency, m_byteDependency, m_hyperDependency, m_longDependency, m_manager, m_sequenceDependency, m_shortDependency, m_unsignedHyperDependency, m_unsignedLongDependency, m_unsignedShortDependency, manager, name, codemaker::UnoType::PlainStruct, codemaker::UnoType::PolymorphicStructTemplate, unoidl::SingleInterfaceBasedServiceEntity::Constructor::Parameter::rest, codemaker::UnoType::SingleInterfaceBasedService, unoidl::InterfaceTypeEntity::Method::Parameter::type, unoidl::SingleInterfaceBasedServiceEntity::Constructor::Parameter::type, unoidl::ConstantValue::TYPE_BOOLEAN, unoidl::ConstantValue::TYPE_BYTE, unoidl::ConstantValue::TYPE_DOUBLE, unoidl::ConstantValue::TYPE_FLOAT, unoidl::ConstantValue::TYPE_HYPER, unoidl::ConstantValue::TYPE_LONG, unoidl::ConstantValue::TYPE_SHORT, unoidl::ConstantValue::TYPE_UNSIGNED_HYPER, unoidl::ConstantValue::TYPE_UNSIGNED_LONG, unoidl::ConstantValue::TYPE_UNSIGNED_SHORT, codemaker::UnoType::Typedef, and u.
codemaker::cppumaker::Dependencies::~Dependencies | ( | ) |
Definition at line 213 of file dependencies.cxx.
|
delete |
|
inline |
Definition at line 72 of file dependencies.hxx.
References m_map.
|
inline |
Definition at line 99 of file dependencies.hxx.
References m_anyDependency.
|
inline |
Definition at line 74 of file dependencies.hxx.
References m_booleanDependency.
|
inline |
Definition at line 76 of file dependencies.hxx.
References m_byteDependency.
|
inline |
Definition at line 93 of file dependencies.hxx.
References m_charDependency.
|
inline |
Definition at line 88 of file dependencies.hxx.
References m_hyperDependency.
|
inline |
Definition at line 83 of file dependencies.hxx.
References m_longDependency.
|
inline |
Definition at line 101 of file dependencies.hxx.
References m_sequenceDependency.
|
inline |
Definition at line 78 of file dependencies.hxx.
References m_shortDependency.
|
inline |
Definition at line 95 of file dependencies.hxx.
References m_stringDependency.
|
inline |
Definition at line 97 of file dependencies.hxx.
References m_typeDependency.
|
inline |
Definition at line 90 of file dependencies.hxx.
References m_unsignedHyperDependency.
|
inline |
Definition at line 85 of file dependencies.hxx.
References m_unsignedLongDependency.
|
inline |
Definition at line 80 of file dependencies.hxx.
References m_unsignedShortDependency.
|
private |
Definition at line 215 of file dependencies.cxx.
References codemaker::UnoType::Any, args, b2u(), codemaker::UnoType::Boolean, codemaker::UnoType::Byte, codemaker::UnoType::Char, codemaker::UnoType::decompose(), codemaker::UnoType::Double, codemaker::UnoType::Enum, codemaker::UnoType::Exception, codemaker::UnoType::Float, codemaker::UnoType::Hyper, i, insert(), codemaker::UnoType::Interface, KIND_BASE, KIND_EXCEPTION, KIND_NORMAL, codemaker::UnoType::Long, m_anyDependency, m_booleanDependency, m_byteDependency, m_charDependency, m_hyperDependency, m_longDependency, m_manager, m_map, m_sequenceDependency, m_shortDependency, m_stringDependency, m_typeDependency, m_unsignedHyperDependency, m_unsignedLongDependency, m_unsignedShortDependency, m_voidDependency, n, name, codemaker::UnoType::PlainStruct, codemaker::UnoType::PolymorphicStructTemplate, codemaker::UnoType::Sequence, codemaker::UnoType::Short, codemaker::UnoType::String, codemaker::UnoType::Type, codemaker::UnoType::Typedef, u2b(), codemaker::UnoType::UnsignedHyper, codemaker::UnoType::UnsignedLong, codemaker::UnoType::UnsignedShort, and codemaker::UnoType::Void.
Referenced by Dependencies(), and insert().
|
delete |
|
private |
Definition at line 120 of file dependencies.hxx.
Referenced by hasAnyDependency(), and insert().
|
private |
Definition at line 109 of file dependencies.hxx.
Referenced by Dependencies(), hasBooleanDependency(), and insert().
|
private |
Definition at line 110 of file dependencies.hxx.
Referenced by Dependencies(), hasByteDependency(), and insert().
|
private |
Definition at line 117 of file dependencies.hxx.
Referenced by hasCharDependency(), and insert().
|
private |
Definition at line 115 of file dependencies.hxx.
Referenced by Dependencies(), hasHyperDependency(), and insert().
|
private |
Definition at line 113 of file dependencies.hxx.
Referenced by Dependencies(), hasLongDependency(), and insert().
|
private |
Definition at line 106 of file dependencies.hxx.
Referenced by Dependencies(), and insert().
|
private |
Definition at line 107 of file dependencies.hxx.
|
private |
Definition at line 121 of file dependencies.hxx.
Referenced by Dependencies(), hasSequenceDependency(), and insert().
|
private |
Definition at line 111 of file dependencies.hxx.
Referenced by Dependencies(), hasShortDependency(), and insert().
|
private |
Definition at line 118 of file dependencies.hxx.
Referenced by hasStringDependency(), and insert().
|
private |
Definition at line 119 of file dependencies.hxx.
Referenced by hasTypeDependency(), and insert().
|
private |
Definition at line 116 of file dependencies.hxx.
Referenced by Dependencies(), hasUnsignedHyperDependency(), and insert().
|
private |
Definition at line 114 of file dependencies.hxx.
Referenced by Dependencies(), hasUnsignedLongDependency(), and insert().
|
private |
Definition at line 112 of file dependencies.hxx.
Referenced by Dependencies(), hasUnsignedShortDependency(), and insert().
|
private |
Definition at line 108 of file dependencies.hxx.
Referenced by insert().