summaryrefslogtreecommitdiff
path: root/src/option.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/option.cpp')
-rw-r--r--src/option.cpp50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/option.cpp b/src/option.cpp
index 66b76cb..c8fcd2f 100644
--- a/src/option.cpp
+++ b/src/option.cpp
@@ -250,6 +250,56 @@ CompOption::Value::list ()
return priv->list;
}
+CompOption::Value::operator bool ()
+{
+ return b();
+}
+
+CompOption::Value::operator int ()
+{
+ return i();
+}
+
+CompOption::Value::operator float()
+{
+ return f();
+}
+
+CompOption::Value::operator unsigned short * ()
+{
+ return c();
+}
+
+CompOption::Value::operator CompString ()
+{
+ return s();
+}
+
+CompOption::Value::operator CompMatch & ()
+{
+ return match();
+}
+
+CompOption::Value::operator CompAction & ()
+{
+ return action();
+}
+
+CompOption::Value::operator CompAction * ()
+{
+ return &action();
+}
+
+CompOption::Value::operator Type ()
+{
+ return listType();
+}
+
+CompOption::Value::operator Vector & ()
+{
+ return list();
+}
+
bool
CompOption::Value::operator== (const CompOption::Value &val)
{