]> git.tdb.fi Git - libs/gl.git/blob - source/tag.cpp
Add a Tag class to identify passes
[libs/gl.git] / source / tag.cpp
1 #include "tag.h"
2
3 namespace Msp {
4 namespace GL {
5
6 Tag::Tag(const char *s):
7         id(0)
8 {
9         for(const char *i=s; *i; ++i)
10                 id=id*id+*i;
11 }
12
13 Tag::Tag(const std::string &s):
14         id(0)
15 {
16         for(std::string::const_iterator i=s.begin(); i!=s.end(); ++i)
17                 id=id*id+*i;
18 }
19
20 } // namespace GL
21 } // namespace Msp