class CPPObject(ObjectDescription[
Known subclasses: sphinx.domains.cpp.CPPClassObject
, sphinx.domains.cpp.CPPConceptObject
, sphinx.domains.cpp.CPPEnumeratorObject
, sphinx.domains.cpp.CPPEnumObject
, sphinx.domains.cpp.CPPFunctionObject
, sphinx.domains.cpp.CPPMemberObject
, sphinx.domains.cpp.CPPTypeObject
, sphinx.domains.cpp.CPPUnionObject
Description of a C++ language object.
Method | add |
Add cross-reference IDs and entries to self.indexnode, if applicable. |
Method | after |
Called after parsing content. Used to reset information about the current directive context on the build environment. |
Method | before |
Called before parsing content. Used to set information about the current directive context on the build environment. |
Method | describe |
Undocumented |
Method | get |
Undocumented |
Method | handle |
Parse the signature *sig* into individual nodes and append them to *signode*. If ValueError is raised, parsing is aborted and the whole *sig* is put into a single desc_name node. |
Method | parse |
Undocumented |
Method | run |
Main directive entry function, called by docutils upon encountering the directive. |
Class Variable | doc |
Undocumented |
Class Variable | option |
Undocumented |
Instance Variable | old |
Undocumented |
Instance Variable | old |
Undocumented |
Property | display |
Undocumented |
Property | object |
Undocumented |
Method | _add |
Undocumented |
Inherited from ObjectDescription
:
Method | get |
Undocumented |
Method | get |
Retrieve the signatures to document from the directive arguments. By default, signatures are given as arguments, one per line. |
Method | transform |
Called after creating the content through nested parsing, but before the ``object-description-transform`` event is emitted, and before the info-fields are transformed. Can be used to manipulate the content. |
Class Variable | final |
Undocumented |
Class Variable | has |
Undocumented |
Class Variable | optional |
Undocumented |
Class Variable | required |
Undocumented |
Instance Variable | domain |
Undocumented |
Instance Variable | indexnode |
Undocumented |
Instance Variable | names |
Undocumented |
Instance Variable | objtype |
Undocumented |
Method | _object |
Returns a tuple of strings, one entry for each part of the object's hierarchy (e.g. ``('module', 'submodule', 'Class', 'method')``). The returned tuple is used to properly nest children within parents in the table of contents, and can also be used within the :py:meth:`_toc_entry_name` method. |
Method | _toc |
Returns the text of the table of contents entry for the object. |
Instance Variable | _doc |
Undocumented |
Inherited from SphinxDirective
(via ObjectDescription
):
Method | get |
Get current location info for logging. |
Method | get |
Get source and line number. |
Method | set |
Set source and line number to the node. |
Property | config |
Reference to the :class:`.Config` object. |
Property | env |
Reference to the :class:`.BuildEnvironment` object. |
Add cross-reference IDs and entries to self.indexnode, if applicable. *name* is whatever :meth:`handle_signature()` returned.
Parameters | |
ast:ASTDeclaration | Undocumented |
sig:str | Undocumented |
signode:TextElement | Undocumented |
Called after parsing content. Used to reset information about the current directive context on the build environment.
Called before parsing content. Used to set information about the current directive context on the build environment.
Undocumented
Parameters | |
signode:desc_signature | Undocumented |
ast:ASTDeclaration | Undocumented |
options:dict | Undocumented |
Parse the signature *sig* into individual nodes and append them to *signode*. If ValueError is raised, parsing is aborted and the whole *sig* is put into a single desc_name node. The return value should be a value that identifies the object. It is passed to :meth:`add_target_and_index()` unchanged, and otherwise only used to skip duplicates.
Parameters | |
sig:str | Undocumented |
signode:desc_signature | Undocumented |
Returns | |
ASTDeclaration | Undocumented |
sphinx.directives.ObjectDescription.run
Main directive entry function, called by docutils upon encountering the directive. This directive is meant to be quite easily subclassable, so it delegates to several additional methods. What it does: * find out if called as a domain-specific directive, set self.domain * create a `desc` node to fit all description inside * parse standard options, currently `noindex` * create an index node if needed as self.indexnode * parse all given signatures (as returned by self.get_signatures()) using self.handle_signature(), which should either return a name or raise ValueError * add index entries using self.add_target_and_index() * parse the content and handle doc fields in it
Returns | |
list[ | Undocumented |
sphinx.domains.cpp.CPPClassObject
, sphinx.domains.cpp.CPPConceptObject
, sphinx.domains.cpp.CPPEnumeratorObject
, sphinx.domains.cpp.CPPEnumObject
, sphinx.domains.cpp.CPPFunctionObject
, sphinx.domains.cpp.CPPMemberObject
, sphinx.domains.cpp.CPPTypeObject
, sphinx.domains.cpp.CPPUnionObject
Undocumented