Public Types | Public Member Functions | Private Attributes

octave_comment_elt Class Reference

#include "comment-list.h"

Collaboration diagram for octave_comment_elt:
Collaboration graph
[legend]

List of all members.

Public Types

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

Public Member Functions

 octave_comment_elt (const std::string &s=std::string(), 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 36 of file comment-list.h.


Member Enumeration Documentation

Enumerator:
unknown 
block 
end_of_line 
doc_string 
copyright 

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


Constructor & Destructor Documentation

octave_comment_elt::octave_comment_elt ( const std::string &  s = std::string (),
comment_type  t = unknown 
) [inline]

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

octave_comment_elt::octave_comment_elt ( const octave_comment_elt oc  )  [inline]

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

octave_comment_elt::~octave_comment_elt ( void   )  [inline]

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


Member Function Documentation

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

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

References txt, and typ.

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

Definition at line 68 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 70 of file comment-list.h.


Member Data Documentation

std::string octave_comment_elt::txt [private]

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

Referenced by operator=().

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

Referenced by operator=().


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines