ROOT_Application
2.0
C++ Core modules and GUIStock
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src_cpp
PatternRecognition.h
Go to the documentation of this file.
1
2
/*
3
* Pattern recognition, used as indicator
4
* specialzed version, split to not mix up
5
*
6
*/
7
8
#include <iostream>
9
#include <sstream>
10
#include <cstdlib>
11
//#include <vector>
12
13
#ifndef PATTERN_RECOGNITION_H_
14
#define PATTERN_RECOGNITION_H_
15
16
class
Pattern
{
17
18
public
:
19
//no need to be public ??
20
//enum Value { null_l,
21
22
static
Pattern
const
Null
,
DojiStar
;
23
24
//delete first const
25
std::string
const
label
()
const
;
26
//std::string const label () const { return pattern_labels_[v_]; }
27
// const std::string label () const { return pattern_labels_[v_]; }
28
29
private
:
30
enum
Value
{
null_l
,
doji_star
};
31
Pattern
(
Value
v):
v_
(v) {}
32
Value
v_
;
33
34
//cannot initilize in header ??
35
//std::string pattern_labels_[] = {"Null","DojiStar"};
36
//other properties....
37
};
38
39
#endif
/* PATTERN_RECOGNITION_H_ */
Pattern::label
std::string const label() const
Definition:
PatternRecognition.cpp:16
Pattern::doji_star
Definition:
PatternRecognition.h:30
Pattern::DojiStar
static Pattern const DojiStar
Definition:
PatternRecognition.h:22
Pattern
Definition:
PatternRecognition.h:16
Pattern::Null
static Pattern const Null
Definition:
PatternRecognition.h:22
Pattern::v_
Value v_
Definition:
PatternRecognition.h:32
Pattern::null_l
Definition:
PatternRecognition.h:30
Pattern::Pattern
Pattern(Value v)
Definition:
PatternRecognition.h:31
Pattern::Value
Value
Definition:
PatternRecognition.h:30
Generated on Mon May 25 2015 20:35:30 for ROOT_Application by
1.8.6