GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Member Functions | Private Attributes | List of all members
octave_comment_elt Class Reference

#include "comment-list.h"

Collaboration diagram for octave_comment_elt:
Collaboration graph
[legend]

Public Types

enum  comment_type {
  unknown, block, full_line, end_of_line,
  doc_string, copyright
}
 

Public Member Functions

 octave_comment_elt (const std::string &s="", comment_type t=unknown)
 
 octave_comment_elt (const octave_comment_elt &oc)
 
 ~octave_comment_elt (void)
 
octave_comment_eltoperator= (const octave_comment_elt &oc)
 
std::string text (void) const
 
comment_type type (void) const
 

Private Attributes

std::string txt
 
comment_type typ
 

Detailed Description

Definition at line 38 of file comment-list.h.

Member Enumeration Documentation

Enumerator
unknown 
block 
full_line 
end_of_line 
doc_string 
copyright 

Definition at line 43 of file comment-list.h.

Constructor & Destructor Documentation

octave_comment_elt::octave_comment_elt ( const std::string s = "",
comment_type  t = unknown 
)
inline

Definition at line 53 of file comment-list.h.

octave_comment_elt::octave_comment_elt ( const octave_comment_elt oc)
inline

Definition at line 57 of file comment-list.h.

octave_comment_elt::~octave_comment_elt ( void  )
inline

Definition at line 75 of file comment-list.h.

Member Function Documentation

octave_comment_elt& octave_comment_elt::operator= ( const octave_comment_elt oc)
inline

Definition at line 60 of file comment-list.h.

References txt, and typ.

std::string octave_comment_elt::text ( void  ) const
inline

Definition at line 71 of file comment-list.h.

Referenced by tree_print_code::print_comment_elt().

comment_type octave_comment_elt::type ( void  ) const
inline

Definition at line 73 of file comment-list.h.

Member Data Documentation

std::string octave_comment_elt::txt
private

Definition at line 80 of file comment-list.h.

Referenced by operator=().

comment_type octave_comment_elt::typ
private

Definition at line 83 of file comment-list.h.

Referenced by operator=().


The documentation for this class was generated from the following file: