| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
16.5.6.1 Object-Oriented Variables
These commands allow you to define different sorts of variables in object-oriented programming languages.
@defcv category class name-
The
@defcvcommand is the general definition command for variables associated with classes in object-oriented programming. The@defcvcommand is followed by three arguments: the category of thing being defined, the class to which it belongs, and its name. For instance:@defcv {Class Option} Window border-pattern … @end defcvproduces:
@defcvcreates an entry in the index of variables. @deftypecv category class data-type name-
The
@deftypecvcommand is the definition command for typed class variables in object-oriented programming. It is analogous to@defcvwith the addition of the data-type parameter to specify the type of the instance variable. Ordinarily, the data type is a programming language construct that should be marked with@code. For instance:@deftypecv {Class Option} Window @code{int} border-pattern … @end deftypecvproduces:
@deftypecvcreates an entry in the index of variables. @defivar class name-
The
@defivarcommand is the definition command for instance variables in object-oriented programming.@defivaris equivalent to ‘@defcv {Instance Variable} …’. For instance:@defivar Window border-pattern … @end defivar
produces:
@defivarcreates an entry in the index of variables. @deftypeivar class data-type name-
The
@deftypeivarcommand is the definition command for typed instance variables in object-oriented programming. It is analogous to@defivarwith the addition of the data-type parameter to specify the type of the instance variable. Ordinarily, the data type is a programming language construct that should be marked with@code. For instance:@deftypeivar Window @code{int} border-pattern … @end deftypeivarproduces:
@deftypeivarcreates an entry in the index of variables.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on October 2, 2013 using texi2html 5.0.
