parameters: (self, name)
return_statement: return n
docstring: adds the dot-separated container class/namespace names to the bare function/class name, e.g. when we have
  
          namespace cv {
          class A {
          public:
              f(int);
          };
          }
  
          the function will convert "A" to "cv.A" and "f" to "cv.A.f".
docstring_summary: adds the dot-separated container class/namespace names to the bare function/class name, e.g. when we have
docstring_tokens: adds the dot - separated container class / namespace names to the bare function / class name e . g . when we have
function: def get_dotted_name(self, name):
          """
          adds the dot-separated container class/namespace names to the bare function/class name, e.g. when we have
  
          namespace cv {
          class A {
          public:
              f(int);
          };
          }
  
          the function will convert "A" to "cv.A" and "f" to "cv.A.f".
          """
          if not self.block_stack:
              return name
          if name.startswith("cv."):
              return name
          qualified_name = (("." in name) or ("::" in name))
          n = ""
          for b in self.block_stack:
              block_type, block_name = b[self.BLOCK_TYPE], b[self.BLOCK_NAME]
              if block_type in ["file", "enum"]:
                  continue
              if block_type not in ["struct", "class", "namespace"]:
                  print("Error at %d: there are non-valid entries in the current block stack " % (self.lineno, self.block_stack))
                  sys.exit(-1)
              if block_name and (block_type == "namespace" or not qualified_name):
                  n += block_name + "."
          n += name.replace("::", ".")
          if n.endswith(".Algorithm"):
              n = "cv.Algorithm"
          return n
function_tokens: def get_dotted_name ( self , name ) : if not self . block_stack : return name if name . startswith ( "cv." ) : return name qualified_name = ( ( "." in name ) or ( "::" in name ) ) n = "" for b in self . block_stack : block_type , block_name = b [ self . BLOCK_TYPE ] , b [ self . BLOCK_NAME ] if block_type in [ "file" , "enum" ] : continue if block_type not in [ "struct" , "class" , "namespace" ] : print ( "Error at %d: there are non-valid entries in the current block stack " % ( self . lineno , self . block_stack ) ) sys . exit ( - 1 ) if block_name and ( block_type == "namespace" or not qualified_name ) : n += block_name + "." n += name . replace ( "::" , "." ) if n . endswith ( ".Algorithm" ) : n = "cv.Algorithm" return n